SAML Assertion Request |
This topic contains a sample request for SAML assertion. |
|
The following code is a sample authentication request to get a SAML artifact and a SAML assertion.
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:Username>username</wsse:Username>
<wsse:Password>password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<header xmlns="http://schemas.cordys.com/General/1.0/">
<Logger xmlns="http://schemas.cordys.com/General/1.0/"/>
</header>
</SOAP:Header>
<SOAP:Body>
<samlp:Request IssueInstant="2010-05-03T06:53:51Z"
MajorVersion="1" MinorVersion="1"
RequestID="aa23159489-0126-1853-28ca-d7024556c36" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">
<samlp:AuthenticationQuery>
<saml:Subject xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion">
<saml:NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">username</saml:NameIdentifier>
</saml:Subject>
</samlp:AuthenticationQuery>
</samlp:Request>
</SOAP:Body>
</SOAP:Envelope>
For more information about how to use SAML assertion and SAML artifacts see
How to use SAML artifacts![](images/newwindow.png)
.